//
//  NSMAsset.h
//  NSMKit
//
//  Created by nsm on 2019/3/5.
//  Copyright © 2019 nani. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSMAsset : NSObject
@property(nonatomic, strong, readonly) PHAsset *asset;
+ (instancetype)assetWithPHAsset:(PHAsset *)asset;
@end

@interface NSMAssetsGroup : NSObject
@property (nonatomic, strong, readonly) PHAssetCollection *assetCollection;
@property (nonatomic, strong, readonly) PHFetchResult *fetchResult;
@property (nonatomic, strong, readonly) NSArray<NSMAsset *> *assets;

+ (instancetype)groupWithAssetCollection:(PHAssetCollection *)assetCollection
                                 options:(nullable PHFetchOptions *)options;

- (NSUInteger)numberOfAssets;
@end

NS_ASSUME_NONNULL_END
